package team.seekers.catering.service;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import team.seekers.catering.entity.dataobject.Food;
import com.baomidou.mybatisplus.extension.service.IService;
import team.seekers.catering.entity.params.add.FoodAddPA;
import team.seekers.catering.entity.params.add.FoodUpdatePA;
import team.seekers.catering.entity.vo.info.FoodInfoVO;

import java.util.Map;

/**
 * <p>
 * 食物表 服务类
 * </p>
 *
 * @author hbc
 * @since 2022-02-04
 */
public interface FoodService extends IService<Food> {

    Map<String, Object> adminPageOrder(long current, long limit, QueryWrapper<Food> wrapper);

    String add(FoodAddPA foodAddPA);

    FoodInfoVO get(String id);

    String update(FoodUpdatePA foodUpdatePA);

    FoodInfoVO todayPush();

    boolean isExist(String foodId);
}
